#ifndef __SCRIPT_MGR_H__
#define __SCRIPT_MGR_H__

#include "utils/singleton.h"

class ScriptMgr : public Singleton<ScriptMgr>
{
public:
	ScriptMgr();
	~ScriptMgr();

	bool ReadLuaFiles(string strDir);
	void ClearFiles();

	size_t GetLuaFileCount();
	string GetFileName(size_t index);

	void LoadScript(string strName, size_t index);
	
private:
	bool m_loaded;

	vector<string> m_strFiles;
	vector<char*> m_buffers;
};

#endif